body {
    background-color: #e1e3e4;
}

.text-black {
    color: black !important;
}

.text-white {
    color: white !important;
}

.bg-purple {
    background-color: purple !important;
}

.bg-limegreen {
    background-color: limegreen !important;
}

.bg-lightyellow {
    background-color: #f8f67e !important;
}

.bg-lightblue {
    background-color: #f8fafd !important;
}

.bg-maroon {
    background-color: #B22222;
}

.page-wrapper {
    background-color: #e1e3e4;
}

.help-block {
    color: red !important;
    font-size: .8em;
}

.si_width {
    width: 3rem !important;
}

.display-header {
    font-size: 1.2rem;
    font-weight: bold;
}


.file-uploads {
    border: 2px dashed #3B2F2F;
}

.file-uploads p {
    width: 100%;
    height: 40%;
    text-align: center;
    /*color: #3B2F2F;*/
    margin-bottom: 0%;
    margin-top: 5%;
    color: purple;
}

.file-uploads input {
    position: relative;
    height: 65%;
    width: 100%;
    margin-top: -13%;
    margin-bottom: -5%;
    outline: none;
    opacity: 0;
    overflow: hidden;
}

.bootstrap-select .dropdown-menu {
    position: relative;
    width: 100% !important;
}

.bootstrap-select button,
.bootstrap-select button:hover {
    background: white !important;
    border: var(--tblr-border-width, 1px) var(--tblr-border-style, solid) var(--tblr-border-color, #dadfe5) !important;
    border-radius: 0;
}

input:not(.is-invalid):not(.is-valid),
textarea:not(.is-invalid):not(.is-valid),
select:not(.is-invalid):not(.is-valid),
.form-control:not(.is-invalid):not(.is-valid),
.tags:not(.is-invalid):not(.is-valid) {
    border: var(--tblr-border-width, 1px) var(--tblr-border-style, solid) var(--tblr-border-color, #dadfe5) !important;
    border-radius: 0 !important;
}

.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid,
.form-control.is-invalid {
    border: 0.06em solid var(--bs-danger) !important;
    border-radius: 0 !important;
}

.was-validated input:invalid,
.was-validated textarea:invalid,
.was-validated select:invalid,
.was-validated .form-control:invalid {
    border-color: var(--bs-danger) !important;
}

.was-validated input:invalid:focus,
.was-validated textarea:invalid:focus,
.was-validated select:invalid:focus,
.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.text-end {
    text-align: right;
}

.card-padding-left {
    padding: 0 0 0 0.5rem;
    /*background-color: #f64242;*/
    border-left: 10px solid #f64242;
}

.approval_process_notification {
    position: relative;
    top: -10px;
    left: 18px;
    width: 20px;
    height: 20px;
    color: whitesmoke;
}

/* Datepicker rendered in <body> must float above sticky header (z-index 1003) */
.bootstrap-datetimepicker-widget {
    z-index: 9999 !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    z-index: 9999 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--tblr-border-color, #dadfe5) !important;
}

small.text-muted {
    color: black !important;
}


.link_404 {
    color: #fff !important;
    padding: 10px 20px;
    background: #39ac31;
    margin: 20px 0;
    display: inline-block;
}

/* Ensure validation errors don't break layout */
.invalid-feedback {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Maintain input group integrity during validation */
.input-group .is-invalid {
    z-index: 3;
}

/* Ensure button stays aligned */
.d-grid {
    margin-top: 1rem;
}

/* Smooth transitions for validation states */
.form-control {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.company-logo-thumb,
.image-upload-thumb {
    width: 100%;
    max-width: 240px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo-thumb img,
.image-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-card,
.image-upload-card {
    border: 2px dotted rgba(98, 105, 118, 0.5);
    border-radius: 8px;
}

.image-upload {
    width: 100%;
}

.image-upload .img-thumbnail {
    background: transparent;
    border: none;
}

.image-upload-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-box,
.image-upload-box {
    width: 100%;
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
    position: relative;
}

.company-logo-box .fileinput-new,
.company-logo-box .fileinput-preview,
.image-upload-box .fileinput-new,
.image-upload-box .fileinput-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo-box img,
.image-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-alert,
.image-upload-alert {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    z-index: 2;
}

/* ── Bootstrap Select + Tabler.io caret conflict fix ───────────────────────
   Tabler sets: width:.36em; height:.36em; border-bottom+border-left; transform:rotate(-45deg)
   (rotated square-corner chevron). Bootstrap Select expects the standard
   Bootstrap 5 border-triangle caret. We reset all of Tabler's chevron
   properties and restore the border-triangle on .bootstrap-select toggles only.
   ──────────────────────────────────────────────────────────────────────── */
.bootstrap-select > .dropdown-toggle::after {
    /* Show the element */
    display: inline-block !important;
    content: "" !important;

    /* Reset Tabler's rotated-square dimensions to zero (required for border-triangle) */
    width: 0 !important;
    height: 0 !important;

    /* Spacing */
    margin-left: 0.4em !important;
    margin-right: 0 !important;
    vertical-align: 0.3em !important;

    /* Standard Bootstrap 5 downward-pointing border triangle */
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;

    /* Clear Tabler's rotation — the triangle shape is directional by itself */
    transform: none !important;
    transition: none !important;
}

/* Upward-pointing triangle when dropdown opens above the toggle (.dropup) */
.bootstrap-select.dropup > .dropdown-toggle::after,
.dropup .bootstrap-select > .dropdown-toggle::after {
    width: 0 !important;
    height: 0 !important;
    border-top: 0 !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0.3em solid !important;
    border-left: 0.3em solid transparent !important;
    transform: none !important;
}

.hr-thick {
    height: 4px;
    border: 0;
    opacity: 1;
}

/* Ensure datetimepicker widget is always visible */
.bootstrap-datetimepicker-widget {
    z-index: 999999 !important;
    display: block !important;
    position: absolute !important;
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Make sure it's visible above everything */
.bootstrap-datetimepicker-widget table {
    background: white !important;
}

.bootstrap-datetimepicker-widget td,
.bootstrap-datetimepicker-widget th {
    background: white !important;
}

/* Style for the widget when visible */
.bootstrap-datetimepicker-widget.bottom:before,
.bootstrap-datetimepicker-widget.bottom:after {
    display: none !important;
}

/* Override any parent container issues */
.modal .bootstrap-datetimepicker-widget,
.card .bootstrap-datetimepicker-widget {
    z-index: 999999 !important;
}